using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using InputSystem;

public class Idle : CharacterState
{
    public Idle(MainCharacter characterFSM) : base(characterFSM)
    {
        InputManager.Instance.UpdateInputEvent(MoveCheck, true);
    }

    public override void Enter()
    {
        Debug.Log("idle");
    }

    public override void Update()
    {

    }

    private void MoveCheck(Vector2 vector2)
    {
        if (vector2.magnitude != 0)
        {
            _characterFSM.Switch(_characterFSM._move);
        }
    }
}
